﻿@{
    ViewBag.Title = "About Us";
}
<script src="@Url.Content("~/Scripts/jQuery.tmpl.min.js")" type="text/javascript"></script>
<script id="contactTemplate" type="text/html">
    <tr>
        <td>{{= id }}</td>
        <td>{{= pId }}</td>
        <td>{{= name }}</td>
    </tr>
</script>
<script type="text/javascript">
    $(function () {
        $.ajax({
            type: "GET",
            url: "@Url.Content("~/Category/getCategorys")",
            dataType: "json",
            success: function (data) {
                $('#contactTemplate').tmpl(data).appendTo('#expressionRows');
            }
        });
    });
    </script>

<h2>
    About</h2>
<div>
    <table id="grid" class="datagrid">
        <thead>
            <tr>
                <th>ID</th>
                <th>PID</th>
                <th>NAME</th>
            </tr>
        </thead>
        <tbody id="expressionRows">
        </tbody>
    </table>
    <div id="pager">
    </div>
</div>
